package com.major.dawn.linkList;

import java.util.ArrayList;
import java.util.ListIterator;

public class Action {
    public static void main(String[] args) {
        MyLinkedList myLinkList = new MyLinkedList();
        myLinkList.addAtHead(1);
        myLinkList.addAtTail(3);
        myLinkList.addAtIndex(1,2);
        myLinkList.get(1);
        myLinkList.deleteAtIndex(1);
        myLinkList.get(1);

        ArrayList arrayList = new ArrayList();
        ListIterator listIterator = arrayList.listIterator();
        while (listIterator.hasNext()) {
            Object next = listIterator.next();
//            listIterator.set();
        }

    }
}
